//
//  ConfigManager.h
//  TodaysPlan
//
//  Created by 寺田 篤史 on 11/10/13.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>

@interface ConfigObject : NSObject
{
	NSString *strDispTitle;
	NSString *strKey;
	
	//values
	NSObject *defaultValue;
	
	NSMutableArray *arraySelectTitle;
	NSMutableArray *arraySelectValue;
	
}

@property (nonatomic, retain) NSString *strDispTitle;
@property (nonatomic, retain) NSString *strKey;

//values
@property (nonatomic, retain) NSObject *defaultValue;

@property (nonatomic, retain) NSArray *arraySelectTitle;
@property (nonatomic, retain) NSArray *arraySelectValue;


-(id) initWithKey:(NSString*)astrDispTitle strKey:(NSString*)astrKey defaultValue:(NSObject*)adefaultValue;
-(void) setValueInt:(NSInteger)aValue;
-(void) setValueString:(NSString*)aValue;
-(void) setValueBool:(BOOL)aValue;
-(NSInteger) getValueInt;
-(NSString*) getValueString;
-(BOOL) getValueBool;
-(void) addSelectData:(NSInteger)avalue strSelectTitle:(NSString*)strSelectTitle;
@end


@interface ConfigManager : NSObject {
    ConfigObject *cfgPkey;
    ConfigObject *cfgTaskData;
    ConfigObject *cfgMemoData;
    ConfigObject *cfgPriority;
    ConfigObject *cfgReminderDate;
    ConfigObject *cfgReminder;
    ConfigObject *cfgDone;
    ConfigObject *cfgPriority_H;
    ConfigObject *cfgPriority_M;
    ConfigObject *cfgPriority_L;
    ConfigObject *cfgAPNS;
    
}
@property (nonatomic, retain) ConfigObject *cfgPkey;
@property (nonatomic, retain) ConfigObject *cfgTaskData;
@property (nonatomic, retain) ConfigObject *cfgMemoData;
@property (nonatomic, retain) ConfigObject *cfgPriority;
@property (nonatomic, retain) ConfigObject *cfgReminderDate;
@property (nonatomic, retain) ConfigObject *cfgReminder;
@property (nonatomic, retain) ConfigObject *cfgDone;
@property (nonatomic, retain) ConfigObject *cfgPriority_H;
@property (nonatomic, retain) ConfigObject *cfgPriority_M;
@property (nonatomic, retain) ConfigObject *cfgPriority_L;
@property (nonatomic, retain) ConfigObject *cfgAPNS;

@end
